package com.beadwallet.configclient;

import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@Slf4j
@RefreshScope
@RestController
public class HelloController {

    @Value("${dataSource.type}")
    private String applicationName;
    @Value("${bluewhale.username}")
    public String username;
    @Value("${bluewhale.pwd}")
    public String pwd;
    @Value("${bluewhale.loginName}")
    public String loginName;
    @Value("${bluewhale.apiCode}")
    public String apiCode;
    @Value("${bluewhale.apiName}")
    public String apiName;
    @Value("${bluewhale.ruleSpecialList}")
    public String ruleSpecialList;
    @Value("${bluewhale.ruleApplyLoanOnline}")
    public String ruleApplyLoanOnline;
    @Value("${bluewhale.ruleExecution}")
    public String ruleExecution;
    public String appId;
    public String privateKey;
    @Value("${bluewhale.photo_comparison}")
    public String photoComparison;
    @Value("${bluewhale.collectuser}")
    public String collectuser;
    @Value("${bluewhale.data}")
    public String data;
    @Value("${bluewhale.detail}")
    public String detail;
    @Value("${bluewhale.idcard_front}")
    public String idcardFront;
    @Value("${bluewhale.idcard_back}")
    public String idcardBack;
    @Value("${bluewhale.socialSecurity_callbackURL}")
    public String socialSecurityCallbackURL;
    @Value("${bluewhale.accumulationFund_callbackURL}")
    public String accumulationFundCallbackURL;
    @Value("${bluewhale.ddh_apply}")
    public String ddhApply;
    @Value("${bluewhale.ddh_applyState}")
    public String ddhApplyState;
    @Value("${bluewhale.ddh_detail}")
    public String ddhDetail;
    @Value("${bluewhale.ddh_getPolicyNo}")
    public  String ddhGetPolicyNo;
    @Value("${bluewhale.ddh_list}")
    public  String ddhList;
    @Value("${bluewhale.operator_callbackURL}")
    public String operatorCallbackURL;
    @Value("${bluewhale.operator1_callbackURL}")
    public String operator1CallbackURL;
    @Value("${bluewhale.getRongUserPortrait_url}")
    public String getRongUserPortraitUrl;
    @Value("${bluewhale.checkProOrder_url}")
    public String checkProOrderUrl;
    @Value("${bluewhale.getRongPhoneConsumptionK}")
    public String getRongPhoneConsumptionK;
    @Value("${bluewhale.getRongPhoneNetworklengthK}")
    public String getRongPhoneNetworklengthK;
    @Value("${bluewhale.getRongPhonestatusK}")
    public String getRongPhonestatusK;
    public String verifyKey;
    public String partnerId;
    public String appIdBQS;
    public String fraudURL;
    public String equipmentInformationURL;
    public String addressBookURL;
    public String jingdongURL;
    public String zhifubaoURL;
    public String presentStatuscURL;
    public String queryOverduePeriods;
    public String presentStatusqURL;
    public String GATEWAYenclosureNum;
    public String queryHistory;
    @Value("${bluewhale.queryKoudaiBlack}")
    public String queryKoudaiBlack;
    @Value("${bluewhale.checkProOrder}")
    public  String checkProOrder;
    @Value("${bluewhale.application_id}")
    public String applicationId;
    @Value("${bluewhale.application_secret}")
    public String applicationSecret;
    @Value("${bluewhale.openId_url}")
    public  String openIdUrl;
    @Value("${bluewhale.get_token}")
    public  String getToken;
    @Value("${bluewhale.sdk_url}")
    public  String sdkUrl;
    @Value("${bluewhale.raw_data}")
    public  String rawData;
    @Value("${bluewhale.get_access_url}")
    public  String getAccessUrl;
    @Value("${bluewhale.register1}")
    public  String register1;
    @Value("${bluewhale.organizationlist1}")
    public  String organizationlist1;
    @Value("${bluewhale.entryinfo1}")
    public  String entryinfo1;
    @Value("${bluewhale.postuserinfo1}")
    public  String postuserinfo1;
    @Value("${bluewhale.crawler1}")
    public  String crawler1;
    @Value("${bluewhale.crawlerstatus1}")
    public  String crawlerstatus1;
    @Value("${bluewhale.crawlerprogres1}")
    public  String crawlerprogres1;
    @Value("${bluewhale.rawdata1}")
    public  String rawdata1;
    @Value("${bluewhale.getreport1}")
    public  String getReport1;
    @Value("${bluewhale.morpho_key}")
    public String morphoKey;
    @Value("${bluewhale.morpho_credit}")
    public String morphoCredit;
    @Value("${bluewhale.morpho_morphoIssue}")
    public String morphoMorphoIssue;
    @Value("${bluewhale.morpho_morphoTrack}")
    public String morphoMorphoTrack;
    @Value("${bluewhale.blackServer}")
    public String blackServer;
    @Value("${bluewhale.BlackInsert}")
    public String BlackInsert;
    @Value("${bluewhale.checkUser}")
    public String checkUser;
    @Value("${bluewhale.bindCard}")
    public String bindCard;
    @Value("${bluewhale.pushOrder}")
    public String pushOrder;
    @Value("${bluewhale.whkey}")
    public String whkey;
    @Value("${bluewhale.whappId}")
    public String whappId;
    @Value("${bluewhale.reports}")
    public String reports;
    @Value("${bluewhale.apply}")
    public String  apply;
    @Value("${bluewhale.applyV1}")
    public String  applyV1;
    @Value("${bluewhale.redisApply}")
    public String  redisApply;
    @Value("${bluewhale.didizmi}")
    public String didizmi;
    @Value("${bluewhale.didi_rawdata}")
    public String didiRawdata;
    @Value("${bluewhale.zrobot_auth}")
    public  String zrobotAuth;
    @Value("${bluewhale.zrobot_pangu}")
    public  String zrobotPanGu;
    @Value("${bluewhale.AuthData}")
    public  String AuthData;
    @Value("${bluewhale.AuthDataCallBack}")
    public  String AuthDataCallBack;
    @Value("${bluewhale.zhimaScore}")
    public  String zhimaScore;
    @Value("${bluewhale.zhimaScoreCallback}")
    public  String zhimaScoreCallback;
    @Value("${bluewhale.AuthDataByQuery}")
    public  String AuthDataByQuery;
    @Value("${bluewhale.veriface}")
    public  String veriface;
    @Value("${bluewhale.dssj_auth}")
    public  String dssjAuth;
    @Value("${bluewhale.dssj_auth_callBack}")
    public  String dssjAuthCallBack;
    @Value("${bluewhale.dssj_auth_getScoreByQuery}")
    public  String dssjAuthGetScoreByQuery;
    @Value("${bluewhale.st_idcard_front}")
    public  String stIdcardFront;
    @Value("${bluewhale.st_idcard_front_sdk}")
    public  String stIdcardFrontSdk;
    @Value("${bluewhale.st_idcard_back}")
    public  String stIdcardBack;
    @Value("${bluewhale.st_idcard_back_sdk}")
    public  String stIdcardBackSdk;
    @Value("${bluewhale.st_verification}")
    public  String stVerification;
    @Value("${bluewhale.idnumber_verification_h5}")
    public  String idnumberVerificationH5;
    @Value("${bluewhale.liveness_idnumber_verification}")
    public  String livenessIdnumberVerification;
    @Value("${bluewhale.checkToken}")
    public String checkToken;



    @RequestMapping("/")
    public String home() {
        log.warn("从配置中心获取的内容是:" + toString());
        return toString();
    }


    @Override
    public String toString() {
        return "HelloController{" +
                "applicationName='" + applicationName + '\'' +
                ", username='" + username + '\'' +
                ", pwd='" + pwd + '\'' +
                ", loginName='" + loginName + '\'' +
                ", apiCode='" + apiCode + '\'' +
                ", apiName='" + apiName + '\'' +
                ", ruleSpecialList='" + ruleSpecialList + '\'' +
                ", ruleApplyLoanOnline='" + ruleApplyLoanOnline + '\'' +
                ", ruleExecution='" + ruleExecution + '\'' +
                ", appId='" + appId + '\'' +
                ", privateKey='" + privateKey + '\'' +
                ", photoComparison='" + photoComparison + '\'' +
                ", collectuser='" + collectuser + '\'' +
                ", data='" + data + '\'' +
                ", detail='" + detail + '\'' +
                ", idcardFront='" + idcardFront + '\'' +
                ", idcardBack='" + idcardBack + '\'' +
                ", socialSecurityCallbackURL='" + socialSecurityCallbackURL + '\'' +
                ", accumulationFundCallbackURL='" + accumulationFundCallbackURL + '\'' +
                ", ddhApply='" + ddhApply + '\'' +
                ", ddhApplyState='" + ddhApplyState + '\'' +
                ", ddhDetail='" + ddhDetail + '\'' +
                ", ddhGetPolicyNo='" + ddhGetPolicyNo + '\'' +
                ", ddhList='" + ddhList + '\'' +
                ", operatorCallbackURL='" + operatorCallbackURL + '\'' +
                ", operator1CallbackURL='" + operator1CallbackURL + '\'' +
                ", getRongUserPortraitUrl='" + getRongUserPortraitUrl + '\'' +
                ", checkProOrderUrl='" + checkProOrderUrl + '\'' +
                ", getRongPhoneConsumptionK='" + getRongPhoneConsumptionK + '\'' +
                ", getRongPhoneNetworklengthK='" + getRongPhoneNetworklengthK + '\'' +
                ", getRongPhonestatusK='" + getRongPhonestatusK + '\'' +
                ", verifyKey='" + verifyKey + '\'' +
                ", partnerId='" + partnerId + '\'' +
                ", appIdBQS='" + appIdBQS + '\'' +
                ", fraudURL='" + fraudURL + '\'' +
                ", equipmentInformationURL='" + equipmentInformationURL + '\'' +
                ", addressBookURL='" + addressBookURL + '\'' +
                ", jingdongURL='" + jingdongURL + '\'' +
                ", zhifubaoURL='" + zhifubaoURL + '\'' +
                ", presentStatuscURL='" + presentStatuscURL + '\'' +
                ", queryOverduePeriods='" + queryOverduePeriods + '\'' +
                ", presentStatusqURL='" + presentStatusqURL + '\'' +
                ", GATEWAYenclosureNum='" + GATEWAYenclosureNum + '\'' +
                ", queryHistory='" + queryHistory + '\'' +
                ", queryKoudaiBlack='" + queryKoudaiBlack + '\'' +
                ", checkProOrder='" + checkProOrder + '\'' +
                ", applicationId='" + applicationId + '\'' +
                ", applicationSecret='" + applicationSecret + '\'' +
                ", openIdUrl='" + openIdUrl + '\'' +
                ", getToken='" + getToken + '\'' +
                ", sdkUrl='" + sdkUrl + '\'' +
                ", rawData='" + rawData + '\'' +
                ", getAccessUrl='" + getAccessUrl + '\'' +
                ", register1='" + register1 + '\'' +
                ", organizationlist1='" + organizationlist1 + '\'' +
                ", entryinfo1='" + entryinfo1 + '\'' +
                ", postuserinfo1='" + postuserinfo1 + '\'' +
                ", crawler1='" + crawler1 + '\'' +
                ", crawlerstatus1='" + crawlerstatus1 + '\'' +
                ", crawlerprogres1='" + crawlerprogres1 + '\'' +
                ", rawdata1='" + rawdata1 + '\'' +
                ", getReport1='" + getReport1 + '\'' +
                ", morphoKey='" + morphoKey + '\'' +
                ", morphoCredit='" + morphoCredit + '\'' +
                ", morphoMorphoIssue='" + morphoMorphoIssue + '\'' +
                ", morphoMorphoTrack='" + morphoMorphoTrack + '\'' +
                ", blackServer='" + blackServer + '\'' +
                ", BlackInsert='" + BlackInsert + '\'' +
                ", checkUser='" + checkUser + '\'' +
                ", bindCard='" + bindCard + '\'' +
                ", pushOrder='" + pushOrder + '\'' +
                ", whkey='" + whkey + '\'' +
                ", whappId='" + whappId + '\'' +
                ", reports='" + reports + '\'' +
                ", apply='" + apply + '\'' +
                ", applyV1='" + applyV1 + '\'' +
                ", redisApply='" + redisApply + '\'' +
                ", didizmi='" + didizmi + '\'' +
                ", didiRawdata='" + didiRawdata + '\'' +
                ", zrobotAuth='" + zrobotAuth + '\'' +
                ", zrobotPanGu='" + zrobotPanGu + '\'' +
                ", AuthData='" + AuthData + '\'' +
                ", AuthDataCallBack='" + AuthDataCallBack + '\'' +
                ", zhimaScore='" + zhimaScore + '\'' +
                ", zhimaScoreCallback='" + zhimaScoreCallback + '\'' +
                ", AuthDataByQuery='" + AuthDataByQuery + '\'' +
                ", veriface='" + veriface + '\'' +
                ", dssjAuth='" + dssjAuth + '\'' +
                ", dssjAuthCallBack='" + dssjAuthCallBack + '\'' +
                ", dssjAuthGetScoreByQuery='" + dssjAuthGetScoreByQuery + '\'' +
                ", stIdcardFront='" + stIdcardFront + '\'' +
                ", stIdcardFrontSdk='" + stIdcardFrontSdk + '\'' +
                ", stIdcardBack='" + stIdcardBack + '\'' +
                ", stIdcardBackSdk='" + stIdcardBackSdk + '\'' +
                ", stVerification='" + stVerification + '\'' +
                ", idnumberVerificationH5='" + idnumberVerificationH5 + '\'' +
                ", livenessIdnumberVerification='" + livenessIdnumberVerification + '\'' +
                ", checkToken='" + checkToken + '\'' +
                '}';
    }
}
